package ooday03.JavaStanardHomework.AnimalAndRefArrayDemo01;
/** 演示Dog1类 */
public class Dog1 extends Animal1 implements Swim1{
    Dog1() {
    }
    Dog1(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    public void swim() {
        System.out.println(color + "色的" + "age" + "岁的小狗" + name + "正在游泳....");
    }
    @Override
    public void eat() {
        System.out.println(color + "色的" + "age" + "岁的小狗" + name + "正在吃骨头....");
    }
    public void lookHome() {
        System.out.println(color + "色的" + "age" + "岁的小狗" + name + "正在看家护院....");
    }

}
